package com.chushouya.order.dto.partner.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 地址信息DTO
 */
@Data
@ApiModel(value = "地址信息DTO")
public class AddressInfoPartnerDTO {

    @ApiModelProperty(value = "区域代码", required = true)
    @NotBlank(message = "区域代码不能为空")
    private String districtCode;

    @ApiModelProperty(value = "用户姓名", required = true)
    @NotBlank(message = "用户姓名不能为空")
    private String userName;

    @ApiModelProperty(value = "用户手机号", required = true)
    @NotBlank(message = "用户手机号不能为空")
    private String userPhone;

    @ApiModelProperty(value = "详细地址", required = true)
    @NotBlank(message = "详细地址不能为空")
    private String address;
}
